#!/bin/bash
# Copyright (c) 2020 Presto Labs Pte. Ltd.
# Author: donggu

set -e

echo '# ---------------------------------------------------------------------------- #'
echo '#                                    Flake 8                                   #'
echo '# ---------------------------------------------------------------------------- #'

find . \( -iname '*.py' \) \
| grep -Ev "external|third_party|experimental|_pb2" \
| parallel -k --max-args 1 flake8
